
<div class="Breadcrumb">
    <div class="Breadcrumb-i">您当前所在的位置：<span><a href="<?php echo base_url($this->_site_path . '/goods'); ?>">商品表</a></span>&nbsp;>&nbsp;<span class="orange"><?php echo isset($goods_data['goods_id']) ? '修改' : '添加'; ?></span> </div>               <div class="Breadcrumb-div">
        <ul>
            <li class="Breadcrumb-tj"><a href="<?php echo base_url($this->_site_path . '/goods/add'); ?>" >添加</a></li>
            <li class="Breadcrumb-lb"><a href="<?php echo base_url($this->_site_path . '/goods'); ?>" >列表</a></li>
        </ul>
    </div>
</div>
<div class="box box-headtitle box-radius">
    <?php get_messagebox(); // 获取提示框 ?>
    <form method="post">

        <div class="control-group">
            <label class="control-label" for="goods_id">商品索引id</label>
            <div class="controls">
                <input type="text" name="goods_id" id="goods_id" placeholder="" value="<?php echo isset($goods_data['goods_id']) ? $goods_data['goods_id'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_name">商品名称</label>
            <div class="controls">
                <input type="text" name="goods_name" id="goods_name" placeholder="" value="<?php echo isset($goods_data['goods_name']) ? $goods_data['goods_name'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="gc_id">商品分类id</label>
            <div class="controls">
                <input type="text" name="gc_id" id="gc_id" placeholder="" value="<?php echo isset($goods_data['gc_id']) ? $goods_data['gc_id'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="gc_name">商品分类名称</label>
            <div class="controls">
                <input type="text" name="gc_name" id="gc_name" placeholder="" value="<?php echo isset($goods_data['gc_name']) ? $goods_data['gc_name'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="brand_id">商品品牌id</label>
            <div class="controls">
                <input type="text" name="brand_id" id="brand_id" placeholder="" value="<?php echo isset($goods_data['brand_id']) ? $goods_data['brand_id'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="type_id">类型id</label>
            <div class="controls">
                <input type="text" name="type_id" id="type_id" placeholder="" value="<?php echo isset($goods_data['type_id']) ? $goods_data['type_id'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="store_id">店铺id</label>
            <div class="controls">
                <input type="text" name="store_id" id="store_id" placeholder="" value="<?php echo isset($goods_data['store_id']) ? $goods_data['store_id'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="spec_open">商品规格开启状态，1开启，0关闭</label>
            <div class="controls">
                <input type="text" name="spec_open" id="spec_open" placeholder="" value="<?php echo isset($goods_data['spec_open']) ? $goods_data['spec_open'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="spec_id">商品默认对应的规格id</label>
            <div class="controls">
                <input type="text" name="spec_id" id="spec_id" placeholder="" value="<?php echo isset($goods_data['spec_id']) ? $goods_data['spec_id'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="spec_name">规格名称</label>
            <div class="controls">
                <input type="text" name="spec_name" id="spec_name" placeholder="" value="<?php echo isset($goods_data['spec_name']) ? $goods_data['spec_name'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_image">商品默认封面图片</label>
            <div class="controls">
                <input type="text" name="goods_image" id="goods_image" placeholder="" value="<?php echo isset($goods_data['goods_image']) ? $goods_data['goods_image'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_image_more">商品多图</label>
            <div class="controls">
                <input type="text" name="goods_image_more" id="goods_image_more" placeholder="" value="<?php echo isset($goods_data['goods_image_more']) ? $goods_data['goods_image_more'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_store_price">商品店铺价格</label>
            <div class="controls">
                <input type="text" name="goods_store_price" id="goods_store_price" placeholder="" value="<?php echo isset($goods_data['goods_store_price']) ? $goods_data['goods_store_price'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_store_price_interval">商品价格区间</label>
            <div class="controls">
                <input type="text" name="goods_store_price_interval" id="goods_store_price_interval" placeholder="" value="<?php echo isset($goods_data['goods_store_price_interval']) ? $goods_data['goods_store_price_interval'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_serial">商品货号</label>
            <div class="controls">
                <input type="text" name="goods_serial" id="goods_serial" placeholder="" value="<?php echo isset($goods_data['goods_serial']) ? $goods_data['goods_serial'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_show">商品上架</label>
            <div class="controls">
                <input type="text" name="goods_show" id="goods_show" placeholder="" value="<?php echo isset($goods_data['goods_show']) ? $goods_data['goods_show'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_click">商品浏览数</label>
            <div class="controls">
                <input type="text" name="goods_click" id="goods_click" placeholder="" value="<?php echo isset($goods_data['goods_click']) ? $goods_data['goods_click'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_state">商品状态，0开启，1违规下架</label>
            <div class="controls">
                <input type="text" name="goods_state" id="goods_state" placeholder="" value="<?php echo isset($goods_data['goods_state']) ? $goods_data['goods_state'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_commend">商品推荐</label>
            <div class="controls">
                <input type="text" name="goods_commend" id="goods_commend" placeholder="" value="<?php echo isset($goods_data['goods_commend']) ? $goods_data['goods_commend'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_add_time">商品添加时间</label>
            <div class="controls">
                <input type="text" name="goods_add_time" id="goods_add_time" placeholder="" value="<?php echo isset($goods_data['goods_add_time']) ? $goods_data['goods_add_time'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_keywords">商品关键字</label>
            <div class="controls">
                <input type="text" name="goods_keywords" id="goods_keywords" placeholder="" value="<?php echo isset($goods_data['goods_keywords']) ? $goods_data['goods_keywords'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_description">商品描述</label>
            <div class="controls">
                <input type="text" name="goods_description" id="goods_description" placeholder="" value="<?php echo isset($goods_data['goods_description']) ? $goods_data['goods_description'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_body">商品详细内容</label>
            <div class="controls">
                <input type="text" name="goods_body" id="goods_body" placeholder="" value="<?php echo isset($goods_data['goods_body']) ? $goods_data['goods_body'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_attr">商品属性</label>
            <div class="controls">
                <input type="text" name="goods_attr" id="goods_attr" placeholder="" value="<?php echo isset($goods_data['goods_attr']) ? $goods_data['goods_attr'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_spec">商品规格</label>
            <div class="controls">
                <input type="text" name="goods_spec" id="goods_spec" placeholder="" value="<?php echo isset($goods_data['goods_spec']) ? $goods_data['goods_spec'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_col_img">颜色自定义图片</label>
            <div class="controls">
                <input type="text" name="goods_col_img" id="goods_col_img" placeholder="" value="<?php echo isset($goods_data['goods_col_img']) ? $goods_data['goods_col_img'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_indate">发布有效期</label>
            <div class="controls">
                <input type="text" name="goods_indate" id="goods_indate" placeholder="" value="<?php echo isset($goods_data['goods_indate']) ? $goods_data['goods_indate'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_starttime">发布开始时间</label>
            <div class="controls">
                <input type="text" name="goods_starttime" id="goods_starttime" placeholder="" value="<?php echo isset($goods_data['goods_starttime']) ? $goods_data['goods_starttime'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_endtime">发布结束时间</label>
            <div class="controls">
                <input type="text" name="goods_endtime" id="goods_endtime" placeholder="" value="<?php echo isset($goods_data['goods_endtime']) ? $goods_data['goods_endtime'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_form">商品类型,1为全新、2为二手</label>
            <div class="controls">
                <input type="text" name="goods_form" id="goods_form" placeholder="" value="<?php echo isset($goods_data['goods_form']) ? $goods_data['goods_form'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="transport_id">运费模板ID，不使用运费模板值为0</label>
            <div class="controls">
                <input type="text" name="transport_id" id="transport_id" placeholder="" value="<?php echo isset($goods_data['transport_id']) ? $goods_data['transport_id'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="py_price">平邮</label>
            <div class="controls">
                <input type="text" name="py_price" id="py_price" placeholder="" value="<?php echo isset($goods_data['py_price']) ? $goods_data['py_price'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="kd_price">快递</label>
            <div class="controls">
                <input type="text" name="kd_price" id="kd_price" placeholder="" value="<?php echo isset($goods_data['kd_price']) ? $goods_data['kd_price'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="es_price">EMS</label>
            <div class="controls">
                <input type="text" name="es_price" id="es_price" placeholder="" value="<?php echo isset($goods_data['es_price']) ? $goods_data['es_price'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="city_id">商品所在地(市)</label>
            <div class="controls">
                <input type="text" name="city_id" id="city_id" placeholder="" value="<?php echo isset($goods_data['city_id']) ? $goods_data['city_id'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="province_id">商品所在地(省)</label>
            <div class="controls">
                <input type="text" name="province_id" id="province_id" placeholder="" value="<?php echo isset($goods_data['province_id']) ? $goods_data['province_id'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_close_reason">商品违规下架原因</label>
            <div class="controls">
                <input type="text" name="goods_close_reason" id="goods_close_reason" placeholder="" value="<?php echo isset($goods_data['goods_close_reason']) ? $goods_data['goods_close_reason'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="commentnum">评论次数</label>
            <div class="controls">
                <input type="text" name="commentnum" id="commentnum" placeholder="" value="<?php echo isset($goods_data['commentnum']) ? $goods_data['commentnum'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="salenum">售出数量</label>
            <div class="controls">
                <input type="text" name="salenum" id="salenum" placeholder="" value="<?php echo isset($goods_data['salenum']) ? $goods_data['salenum'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="group_flag">团购标识(团购1/非团购0)</label>
            <div class="controls">
                <input type="text" name="group_flag" id="group_flag" placeholder="" value="<?php echo isset($goods_data['group_flag']) ? $goods_data['group_flag'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="goods_transfee_charge">商品运费承担方式 默认 0为买家承担 1为卖家承担</label>
            <div class="controls">
                <input type="text" name="goods_transfee_charge" id="goods_transfee_charge" placeholder="" value="<?php echo isset($goods_data['goods_transfee_charge']) ? $goods_data['goods_transfee_charge'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="created">添加时间</label>
            <div class="controls">
                <input type="text" name="created" id="created" placeholder="" value="<?php echo isset($goods_data['created']) ? $goods_data['created'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="modified">修改时间</label>
            <div class="controls">
                <input type="text" name="modified" id="modified" placeholder="" value="<?php echo isset($goods_data['modified']) ? $goods_data['modified'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="status">状态</label>
            <div class="controls">
                <input type="text" name="status" id="status" placeholder="" value="<?php echo isset($goods_data['status']) ? $goods_data['status'] : ''; ?>">
            </div>
        </div>

        <div class="control-group control-group-submit">
            <button type="submit" class="btn  btn-blue  floa-Left"><?php echo isset($goods_data['goods_id']) ? '修改' : '添加'; ?></button>
            <button type="submit" class="btn  btn-blue">重置</button>
        </div>
        <input type="hidden" name="is_submit" value="1">
        <!--__TOKEN__-->
    </form>
</div>
